/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Telas;

import classes.LerHorario;
import classes.Principal;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;



/**
 *
 * @author Guilherme
 */
public class TelaMeuHorario extends javax.swing.JInternalFrame {
   LerHorario lerHorario = new LerHorario();
    //Variaveis var = new Variaveis();

    private javax.swing.JDesktopPane desktop;
    public TelaMeuHorario() {
        initComponents();
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPaneMeuHorario = new javax.swing.JLayeredPane();
        jLabel1 = new javax.swing.JLabel();
        jPanelSegundaUm = new javax.swing.JPanel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jButtonHorarioVespertino = new javax.swing.JButton();
        jPanelSegundaDois = new javax.swing.JPanel();
        jLabel22 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jPanelTercaDois = new javax.swing.JPanel();
        jLabel23 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jPanelTercaUm = new javax.swing.JPanel();
        jLabelTerçaUm = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jPanelQuartaUm = new javax.swing.JPanel();
        jLabel16 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        jPanelQuintaDois = new javax.swing.JPanel();
        jLabel24 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jPanelQuarta2 = new javax.swing.JPanel();
        jLabel25 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jButtonAdicionaHorario = new javax.swing.JButton();
        jButtonChamaMatutino = new javax.swing.JButton();
        jLabel10 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jPanelQuinta = new javax.swing.JPanel();
        jLabel17 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jButtonExcluir = new javax.swing.JButton();
        jLabel41 = new javax.swing.JLabel();
        jPanelQuinta1 = new javax.swing.JPanel();
        jLabel42 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        jPanelQuintaDois1 = new javax.swing.JPanel();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();

        setPreferredSize(new java.awt.Dimension(657, 355));

        jLayeredPaneMeuHorario.setPreferredSize(new java.awt.Dimension(641, 325));

        jLabel1.setFont(new java.awt.Font("Tahoma", 2, 24)); // NOI18N
        jLabel1.setText("Meu Horário");

        jPanelSegundaUm.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.disciplinasegunda1 = LerHorario.leitorDisciplina("Segunda", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel12.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel12.setText(Principal.disciplinasegunda1);

        try{
            Principal.localsegunda1 = LerHorario.leitorLocal("Segunda", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel13.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        //Principal.localsegunda1 = Principal.local;
        jLabel13.setText(Principal.localsegunda1);

        try{
            Principal.salasegunda1 = LerHorario.leitorSala("Segunda", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel35.setText(Principal.salasegunda1);

        javax.swing.GroupLayout jPanelSegundaUmLayout = new javax.swing.GroupLayout(jPanelSegundaUm);
        jPanelSegundaUm.setLayout(jPanelSegundaUmLayout);
        jPanelSegundaUmLayout.setHorizontalGroup(
            jPanelSegundaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelSegundaUmLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelSegundaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelSegundaUmLayout.createSequentialGroup()
                        .addComponent(jLabel35)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelSegundaUmLayout.setVerticalGroup(
            jPanelSegundaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelSegundaUmLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel35)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jLabel2.setText("18:50h");

        jLabel3.setText("20:20h");

        jLabel4.setText("20:30h");

        jLabel5.setText("22:00h");

        jButtonHorarioVespertino.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/matut.png"))); // NOI18N
        jButtonHorarioVespertino.setText("Vespertino");
        jButtonHorarioVespertino.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonHorarioVespertinoActionPerformed(evt);
            }
        });

        jPanelSegundaDois.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.disciplinasegunda2 = LerHorario.leitorDisciplina("Segunda", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel22.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        //Principal.disciplinasegunda2 = Principal.disciplina;
        jLabel22.setText(Principal.disciplinasegunda2);

        try{
            Principal.localsegunda2 = LerHorario.leitorLocal("Segunda", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel27.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        //Principal.localsegunda2 = Principal.local;
        jLabel27.setText(Principal.localsegunda2);

        try{
            Principal.salasegunda2 = LerHorario.leitorSala("Segunda", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel33.setText(Principal.salasegunda2);

        javax.swing.GroupLayout jPanelSegundaDoisLayout = new javax.swing.GroupLayout(jPanelSegundaDois);
        jPanelSegundaDois.setLayout(jPanelSegundaDoisLayout);
        jPanelSegundaDoisLayout.setHorizontalGroup(
            jPanelSegundaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelSegundaDoisLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelSegundaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel22, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelSegundaDoisLayout.createSequentialGroup()
                        .addComponent(jLabel33)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelSegundaDoisLayout.setVerticalGroup(
            jPanelSegundaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelSegundaDoisLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel33)
                .addContainerGap(18, Short.MAX_VALUE))
        );

        jPanelTercaDois.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.disciplinaterca2 = LerHorario.leitorDisciplina("Terça", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel23.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        //Principal.disciplinaterca2 = Principal.disciplina;
        jLabel23.setText(Principal.disciplinaterca2);

        try{
            Principal.localterca2 = LerHorario.leitorLocal("Terça", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel28.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel28.setText(Principal.localterca2);

        try{
            Principal.salaterca2 = LerHorario.leitorSala("Terça", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel36.setText(Principal.salaterca2);

        javax.swing.GroupLayout jPanelTercaDoisLayout = new javax.swing.GroupLayout(jPanelTercaDois);
        jPanelTercaDois.setLayout(jPanelTercaDoisLayout);
        jPanelTercaDoisLayout.setHorizontalGroup(
            jPanelTercaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTercaDoisLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelTercaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelTercaDoisLayout.createSequentialGroup()
                        .addComponent(jLabel36)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelTercaDoisLayout.setVerticalGroup(
            jPanelTercaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTercaDoisLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel36)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jPanelTercaUm.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.disciplinaterca1 = LerHorario.leitorDisciplina("Terça", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabelTerçaUm.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        //Principal.disciplinaterca1 = Principal.disciplina;
        jLabelTerçaUm.setText(Principal.disciplinaterca1);

        try{
            Principal.localterca1 = LerHorario.leitorLocal("Terça", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel15.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel15.setText(Principal.localterca1);

        try{
            Principal.salaterca1 = LerHorario.leitorSala("Terça", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel34.setText(Principal.salaterca1);

        javax.swing.GroupLayout jPanelTercaUmLayout = new javax.swing.GroupLayout(jPanelTercaUm);
        jPanelTercaUm.setLayout(jPanelTercaUmLayout);
        jPanelTercaUmLayout.setHorizontalGroup(
            jPanelTercaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTercaUmLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelTercaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTerçaUm, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelTercaUmLayout.createSequentialGroup()
                        .addComponent(jLabel34)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelTercaUmLayout.setVerticalGroup(
            jPanelTercaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTercaUmLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelTerçaUm, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel34)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jPanelQuartaUm.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.localquarta1 = LerHorario.leitorLocal("Quarta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel16.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel16.setText(Principal.localquarta1);

        try{
            Principal.disciplinaquarta1 = LerHorario.leitorDisciplina("Quarta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel19.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel19.setText(Principal.disciplinaquarta1);

        try{
            Principal.salaquarta1 = LerHorario.leitorSala("Quarta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel40.setText(Principal.salaquarta1);

        javax.swing.GroupLayout jPanelQuartaUmLayout = new javax.swing.GroupLayout(jPanelQuartaUm);
        jPanelQuartaUm.setLayout(jPanelQuartaUmLayout);
        jPanelQuartaUmLayout.setHorizontalGroup(
            jPanelQuartaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuartaUmLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelQuartaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addGroup(jPanelQuartaUmLayout.createSequentialGroup()
                        .addComponent(jLabel40)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelQuartaUmLayout.setVerticalGroup(
            jPanelQuartaUmLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelQuartaUmLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel40)
                .addContainerGap(15, Short.MAX_VALUE))
        );

        jPanelQuintaDois.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.disciplinaquinta2 = LerHorario.leitorDisciplina("Quinta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel24.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel24.setText(Principal.disciplinaquinta2);

        try{
            Principal.localquinta2 = LerHorario.leitorLocal("Quinta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel30.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel30.setText(Principal.localquinta2);

        try{
            Principal.salaquinta2 = LerHorario.leitorSala("Quinta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel38.setText(Principal.salaquinta2);

        javax.swing.GroupLayout jPanelQuintaDoisLayout = new javax.swing.GroupLayout(jPanelQuintaDois);
        jPanelQuintaDois.setLayout(jPanelQuintaDoisLayout);
        jPanelQuintaDoisLayout.setHorizontalGroup(
            jPanelQuintaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuintaDoisLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelQuintaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelQuintaDoisLayout.createSequentialGroup()
                        .addComponent(jLabel38)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelQuintaDoisLayout.setVerticalGroup(
            jPanelQuintaDoisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuintaDoisLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel38)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jPanelQuarta2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.disciplinaquarta2 = LerHorario.leitorDisciplina("Quarta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel25.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel25.setText(Principal.disciplinaquarta2);

        try{
            Principal.localquarta2 = LerHorario.leitorLocal("Quarta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel29.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel29.setText(Principal.localquarta2);

        try{
            Principal.salaquarta2 = LerHorario.leitorSala("Quarta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel37.setText(Principal.salaquarta2);

        javax.swing.GroupLayout jPanelQuarta2Layout = new javax.swing.GroupLayout(jPanelQuarta2);
        jPanelQuarta2.setLayout(jPanelQuarta2Layout);
        jPanelQuarta2Layout.setHorizontalGroup(
            jPanelQuarta2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuarta2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelQuarta2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelQuarta2Layout.createSequentialGroup()
                        .addComponent(jLabel37)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelQuarta2Layout.setVerticalGroup(
            jPanelQuarta2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuarta2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel37)
                .addContainerGap(18, Short.MAX_VALUE))
        );

        jButtonAdicionaHorario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/adicionarh.png"))); // NOI18N
        jButtonAdicionaHorario.setText("Adicionar");
        jButtonAdicionaHorario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAdicionaHorarioActionPerformed(evt);
            }
        });

        jButtonChamaMatutino.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/manha.png"))); // NOI18N
        jButtonChamaMatutino.setText("Matutino");
        jButtonChamaMatutino.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonChamaMatutinoActionPerformed(evt);
            }
        });

        jLabel10.setText("Sexta");

        jLabel9.setText("Quinta ");

        jLabel8.setText("Quarta");

        jLabel7.setText("Terça");

        jLabel6.setText("Segunda");

        jLabel11.setText("Turno: NOTURNO");

        jPanelQuinta.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));
        jPanelQuinta.setMinimumSize(new java.awt.Dimension(0, 0));
        jPanelQuinta.setPreferredSize(new java.awt.Dimension(104, 104));

        try{
            Principal.localquinta1 = LerHorario.leitorLocal("Quinta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel17.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel17.setText(Principal.localquinta1);

        try{
            Principal.disciplinaquinta1 = LerHorario.leitorDisciplina("Quinta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel20.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel20.setText(Principal.disciplinaquinta1);

        try{
            Principal.salaquinta1 = LerHorario.leitorSala("Quinta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel39.setText(Principal.salaquinta1);

        javax.swing.GroupLayout jPanelQuintaLayout = new javax.swing.GroupLayout(jPanelQuinta);
        jPanelQuinta.setLayout(jPanelQuintaLayout);
        jPanelQuintaLayout.setHorizontalGroup(
            jPanelQuintaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuintaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelQuintaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelQuintaLayout.createSequentialGroup()
                        .addComponent(jLabel39)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelQuintaLayout.setVerticalGroup(
            jPanelQuintaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelQuintaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel39)
                .addContainerGap(18, Short.MAX_VALUE))
        );

        jButtonExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/exc.PNG"))); // NOI18N
        jButtonExcluir.setText("Excluir");
        jButtonExcluir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonExcluirActionPerformed(evt);
            }
        });

        try{
            Principal.disciplinasexta1 = LerHorario.leitorDisciplina("Sexta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel41.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel41.setText(Principal.disciplinasexta1);

        jPanelQuinta1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));
        jPanelQuinta1.setPreferredSize(new java.awt.Dimension(104, 104));

        try{
            Principal.localsexta1 = LerHorario.leitorLocal("Sexta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel42.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel42.setText(Principal.localsexta1);

        try{
            Principal.disciplinasexta1 = LerHorario.leitorDisciplina("Sexta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel43.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel43.setText(Principal.disciplinasexta1);

        try{
            Principal.salasexta1 = LerHorario.leitorSala("Sexta", "18:50h-20:20h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel44.setText(Principal.salasexta1);

        javax.swing.GroupLayout jPanelQuinta1Layout = new javax.swing.GroupLayout(jPanelQuinta1);
        jPanelQuinta1.setLayout(jPanelQuinta1Layout);
        jPanelQuinta1Layout.setHorizontalGroup(
            jPanelQuinta1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuinta1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelQuinta1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel43, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel42, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelQuinta1Layout.createSequentialGroup()
                        .addComponent(jLabel44)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelQuinta1Layout.setVerticalGroup(
            jPanelQuinta1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelQuinta1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel43, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel42, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel44)
                .addContainerGap(18, Short.MAX_VALUE))
        );

        jPanelQuintaDois1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.gray, null, null));

        try{
            Principal.disciplinasexta2 = LerHorario.leitorDisciplina("Sexta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel45.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel45.setText(Principal.disciplinasexta2);

        try{
            Principal.localsexta2 = LerHorario.leitorLocal("Sexta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel46.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabel46.setText(Principal.localsexta2);

        try{
            Principal.salasexta2 = LerHorario.leitorSala("Sexta", "20:30h-22:00h");
        } catch (Throwable t) {
            t.printStackTrace();
        }
        jLabel47.setText(Principal.salasexta2);

        javax.swing.GroupLayout jPanelQuintaDois1Layout = new javax.swing.GroupLayout(jPanelQuintaDois1);
        jPanelQuintaDois1.setLayout(jPanelQuintaDois1Layout);
        jPanelQuintaDois1Layout.setHorizontalGroup(
            jPanelQuintaDois1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuintaDois1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelQuintaDois1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel45, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(jLabel46, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelQuintaDois1Layout.createSequentialGroup()
                        .addComponent(jLabel47)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelQuintaDois1Layout.setVerticalGroup(
            jPanelQuintaDois1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelQuintaDois1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel45, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel47)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jLayeredPaneMeuHorarioLayout = new javax.swing.GroupLayout(jLayeredPaneMeuHorario);
        jLayeredPaneMeuHorario.setLayout(jLayeredPaneMeuHorarioLayout);
        jLayeredPaneMeuHorarioLayout.setHorizontalGroup(
            jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanelSegundaUm, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanelSegundaDois, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(59, 59, 59)
                                .addComponent(jLabel6))))
                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addGap(84, 84, 84)
                        .addComponent(jButtonHorarioVespertino)))
                .addGap(26, 26, 26)
                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addGap(67, 67, 67)
                        .addComponent(jLabel7)
                        .addGap(141, 141, 141)
                        .addComponent(jLabel8))
                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanelTercaDois, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanelTercaUm, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonAdicionaHorario, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(26, 26, 26)
                                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jPanelQuartaUm, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jPanelQuarta2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(66, 66, 66)
                                .addComponent(jButtonExcluir)))))
                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(137, 137, 137)
                                .addComponent(jButtonChamaMatutino)
                                .addGap(45, 45, 45)
                                .addComponent(jLabel41, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jPanelQuinta, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
                                    .addComponent(jPanelQuintaDois, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jPanelQuinta1, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
                                    .addComponent(jPanelQuintaDois1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(0, 0, Short.MAX_VALUE)))
                        .addGap(58, 58, 58))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel9)
                        .addGap(173, 173, 173)
                        .addComponent(jLabel10)
                        .addGap(193, 193, 193))))
            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                .addGap(433, 433, 433)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 220, Short.MAX_VALUE)
                .addComponent(jLabel11)
                .addGap(247, 247, 247))
        );
        jLayeredPaneMeuHorarioLayout.setVerticalGroup(
            jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel11))
                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(107, 107, 107)
                                .addComponent(jLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel3)
                                .addGap(86, 86, 86)
                                .addComponent(jLabel4)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel5))
                            .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(53, 53, 53)
                                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                                .addComponent(jLabel7)
                                                .addGap(4, 4, 4)))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jPanelQuartaUm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelTercaUm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelSegundaUm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                        .addComponent(jLabel6)
                                        .addGap(120, 120, 120)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanelQuarta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelTercaDois, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelSegundaDois, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                .addGap(52, 52, 52)
                                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                        .addComponent(jPanelQuinta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jPanelQuintaDois, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                                        .addComponent(jPanelQuinta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jPanelQuintaDois1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(87, 87, 87)
                        .addGroup(jLayeredPaneMeuHorarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonAdicionaHorario)
                            .addComponent(jButtonHorarioVespertino)
                            .addComponent(jButtonExcluir)
                            .addComponent(jButtonChamaMatutino))
                        .addGap(0, 21, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jLayeredPaneMeuHorarioLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel41, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(41, 41, 41))))
        );
        jLayeredPaneMeuHorario.setLayer(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelSegundaUm, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jButtonHorarioVespertino, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelSegundaDois, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelTercaDois, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelTercaUm, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelQuartaUm, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelQuintaDois, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelQuarta2, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jButtonAdicionaHorario, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jButtonChamaMatutino, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel8, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel7, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel11, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelQuinta, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jButtonExcluir, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jLabel41, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelQuinta1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLayeredPaneMeuHorario.setLayer(jPanelQuintaDois1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPaneMeuHorario, javax.swing.GroupLayout.DEFAULT_SIZE, 1137, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPaneMeuHorario, javax.swing.GroupLayout.DEFAULT_SIZE, 475, Short.MAX_VALUE)
        );

        setBounds(0, 0, 1153, 504);
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonAdicionaHorarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAdicionaHorarioActionPerformed
        TelaAdicionarHorario adicionaHorario = new TelaAdicionarHorario();
        jLayeredPaneMeuHorario.add(adicionaHorario);
        adicionaHorario.setVisible(true);
        adicionaHorario.setClosable(true);
        adicionaHorario.setAlignmentX(500);
        adicionaHorario.setAlignmentY(500);
        
    }//GEN-LAST:event_jButtonAdicionaHorarioActionPerformed

    private void jButtonChamaMatutinoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonChamaMatutinoActionPerformed
        //TelaPrincipalAluno telaPrincipal = new TelaPrincipalAluno();
        TelaMeuHorarioMatutino horarioMatutino = new TelaMeuHorarioMatutino();
        jLayeredPaneMeuHorario.add(horarioMatutino);
        horarioMatutino.setVisible(true);
        horarioMatutino.setClosable(true);
    }//GEN-LAST:event_jButtonChamaMatutinoActionPerformed

    private void jButtonHorarioVespertinoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonHorarioVespertinoActionPerformed
        //TelaPrincipalAluno telaPrincipal = new TelaPrincipalAluno();
        TelaMeuHorarioVespertino horarioVespertino = new TelaMeuHorarioVespertino();
        jLayeredPaneMeuHorario.add(horarioVespertino);
        horarioVespertino.setVisible(true);
        horarioVespertino.setClosable(true);
    }//GEN-LAST:event_jButtonHorarioVespertinoActionPerformed

    private void jButtonExcluirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExcluirActionPerformed
      TelaExcluir excluir = new TelaExcluir();
        jLayeredPaneMeuHorario.add(excluir);
        excluir.setVisible(true);
        excluir.setClosable(true);
    }//GEN-LAST:event_jButtonExcluirActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAdicionaHorario;
    private javax.swing.JButton jButtonChamaMatutino;
    private javax.swing.JButton jButtonExcluir;
    private javax.swing.JButton jButtonHorarioVespertino;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabelTerçaUm;
    private javax.swing.JLayeredPane jLayeredPaneMeuHorario;
    private javax.swing.JPanel jPanelQuarta2;
    private javax.swing.JPanel jPanelQuartaUm;
    private javax.swing.JPanel jPanelQuinta;
    private javax.swing.JPanel jPanelQuinta1;
    private javax.swing.JPanel jPanelQuintaDois;
    private javax.swing.JPanel jPanelQuintaDois1;
    private javax.swing.JPanel jPanelSegundaDois;
    private javax.swing.JPanel jPanelSegundaUm;
    private javax.swing.JPanel jPanelTercaDois;
    private javax.swing.JPanel jPanelTercaUm;
    // End of variables declaration//GEN-END:variables
}
